import dt from '@dt/dt'
import server from '@dt/server/dt'

const api = {
  permissionMenuList: server.api().get('/sa-admin/api/v1/authMenu/list'), //BS权限菜单列表
  sysMenuList: () => server.api().get('/sa-admin/api/v1/sysMenu/list'), //BS菜单列表
  saWebAuthList: server.api().get('/sa-admin/api/v1/saWebAuth/list'), //sass权限菜单列表
  saMenuList: () => server.api().get('/sa-admin/api/v1/saMenu/list') //sass菜单列表
}

function permissionMenuList(info) {
  return api.permissionMenuList.fetch(info)
}

function sysMenuList(info) {
  return api.sysMenuList().fetch(info)
}

function saWebAuthList(info) {
  return api.saWebAuthList.fetch(info)
}

function saMenuList(info) {
  return api.saMenuList().fetch(info)
}

export default {
  permissionMenuList,
  sysMenuList,
  saWebAuthList,
  saMenuList
}
